package cn.lyjuan.first.netty._4_netty_serialize.msg;

import java.util.Objects;

public class MyMessage
{
    /**
     * 头部
     */
    private String head;

    /**
     * 数据
     */
    private String data;

    /**
     * 尾部
     */
    private String foot;

    public String getHead()
    {
        return head;
    }

    public void setHead(String head)
    {
        this.head = head;
    }

    public String getData()
    {
        return data;
    }

    public void setData(String data)
    {
        this.data = data;
    }

    public String getFoot()
    {
        return foot;
    }

    public void setFoot(String foot)
    {
        this.foot = foot;
    }

    public MyMessage()
    {
    }

    public MyMessage(String head, String data, String foot)
    {
        this.head = head;
        this.data = data;
        this.foot = foot;
    }

    @Override
    public String toString()
    {
        return "MyMessage{" +
                "head='" + head + '\'' +
                ", data='" + data + '\'' +
                ", foot='" + foot + '\'' +
                '}';
    }
}
